<?xml version="1.0" encoding="UTF-8"?>
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	renderKitId="AJAX">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/css/kmp4.css" type="text/css"></w:stylesheet>
		<w:script src="/javascript/k4.js" type="text/javascript" language="UTF-8"></w:script>
		<script>
			//<![CDATA[
			function showRelation(title,url){
				iframe_rd.location.href=url;
				window_rd.setTitle(title);
				window_rd.show();
			}
			function closeWindow(jsvar){
				window_rd.hide();
				refreshData(jsvar);
			}
			function refreshData(jsvar){
			if(jsvar!=null&&''!=jsvar){
				var frame=document.getElementById(jsvar+'_frame');
				var src=frame.src;
				frame.src=src;
			}
		}
			
		    //]]>
		</script>
	</w:head>
	<w:page title="查看单点登录系统用户">
		<layout:borderLayout fitToBody="true">
			<layout:panel region="center" fit="true" split="true" border="false" styleClass="k4-combineform"
				autoScroll="true">
				<w:form>
			<layout:panelGrid cellpadding="0" cellspacing="0" border="1" styleClass="k4-form-grid"
					columns="2" id="panel1">
					<layout:cell style="width: 50" styleClass="k4-form-fieldtitle">
						<h:outputLabel value="单点登录系统用户名称"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<h:outputText id="userName" escape="false"></h:outputText>
					</layout:cell>
				</layout:panelGrid>
			</w:form>
		</layout:panel>
		
		<layout:panel region="south" split="true" fit="true" height="330" border="false">
		<layout:panelGrid columns="2">
		   <layout:cell>
		       <div>系统列表</div>
				<w:dataGrid id="listSystemForUserGrid" rows="10" height="200" width="600" paged="false" showRowNumber="true"
				 singleSelect="true" jsvar="listSystemForUserGridJsvar" forceFit="true">
				<w:outputColumn id="id" header="id" hidden="true"></w:outputColumn>
				<w:outputColumn id="systemName" header="系统名称" width="50"></w:outputColumn>
				<w:outputColumn id="systemRemark" header="描述" width="100" wrap="true" requireEscape="false"></w:outputColumn>
			</w:dataGrid>
			</layout:cell>
					<layout:cell>
						<div>用户列表</div>
						<w:form>
						<w:dataGrid id="listHumanForUserGrid" height="200" width="500" rows="10" paged="false"
							showRowNumber="true" selectionModel="#{selectionModel.checkbox}"
							jsvar="listHumanForUserGridJsvar" var="human" singleSelect="true" forceFit="true">
							<w:outputColumn header="系统名称" width="50" value="#{human.system.systemName}"></w:outputColumn>
							<w:outputColumn header="用户名称" width="150" value="#{human.humanName}"></w:outputColumn>
						<w:pagingToolbar >
						<w:button id="add" value="保存用户关系" image="/images/save.gif" alt="保存" disabled="#{sso_showUserBean.addButton}"/>
						</w:pagingToolbar>
						</w:dataGrid>
						</w:form>
					</layout:cell>
				</layout:panelGrid>
		</layout:panel>
		</layout:borderLayout>
	</w:page>
</f:view>